import { history } from '@umijs/max';
import { Button, Result } from 'antd';
import React from 'react';

const AccessNo: React.FC = () => (
  <Result
    status="403"
    title="403"
    subTitle="您没有权限访问此页面！"
    extra={
      <Button type="primary" onClick={() => history.back()}>
        返回
      </Button>
    }
  />
);

export default AccessNo;
